import request from "@/utils/request";

// 查询秒杀活动商品关联列表
export function listRelation(query) {
  return request({
    url: "/coupon/skurelation/list",
    method: "get",
    params: query,
  });
}

// 查询秒杀活动商品关联详细
export function getRelation(id) {
  return request({
    url: "/coupon/skurelation/" + id,
    method: "get",
  });
}

// 新增秒杀活动商品关联
export function addRelation(data) {
  return request({
    url: "/coupon/skurelation",
    method: "post",
    data: data,
  });
}

// 修改秒杀活动商品关联
export function updateRelation(data) {
  return request({
    url: "/coupon/skurelation",
    method: "put",
    data: data,
  });
}

// 删除秒杀活动商品关联
export function delRelation(id) {
  return request({
    url: "/coupon/skurelation/" + id,
    method: "delete",
  });
}
